<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:h="http://xmlns.jcp.org/jsf/html">
<h:head>
    <f:metadata>
        <f:viewParam name="name" value="#{demoMessageBean.name}"/>
        <f:event type="preRenderView" listener="#{demoMessageBean.before}"/>
    </f:metadata>
</h:head>
<h:body>

    <h1>JSF 2 View Parameters Listener</h1>

    Requested message name: #{demoMessageBean.name}

</h:body>
</html>